﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace ArmyCreator.ViewModel
{
    public class ListingViewModel : ModelObject
    {
        public ArmyViewModel Army
        {
            get { return GetValue<ArmyViewModel>("army", null); }
            set { SetValue("army", value); }
        }

        public ObservableCollection<UnitViewModel> Units
        {
            get { return GetValue<ObservableCollection<UnitViewModel>>("army", new ObservableCollection<UnitViewModel>()); }
            set { SetValue("army", value); }
        }
    }
}
